package com.usian.user.controller;

import com.usian.model.user.pojos.ApUser;
import com.usian.user.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/apuser")
public class ApUserController {

    @Autowired
    private ApUserService apUserService;

    /**
     * apuser 根据id查询信息
     * @param id
     * @return
     */
    @GetMapping("/findById")
    public ApUser findById(Integer id){
        return apUserService.findById(id);
    }

}
